APP_NAME := es-reindex
VERSION := v1.0.0
BUILD_DIR := build

.PHONY: all mac ubuntu clean

all: mac ubuntu

mac:
	@echo "🔨 Building for macOS (M1)..."
	GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -o $(BUILD_DIR)/$ main_mac main.go

ubuntu:
	@echo "🔨 Building for ubuntu (Ubuntu amd64)..."
	GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o $(BUILD_DIR)/$ main_ubuntu main.go

clean:
	@echo "🧹 Cleaning build files..."
	rm -rf $(BUILD_DIR)
